/**  
 *	VisualGroup JavaScript prototype Classes, version draf
 *  (c) 2008 Bill Vison <vison_ruan@126.com>
 *
 *
/*--------------------------------------------------------------------------*/
using("Vsg.EntityRecord");
using("Vsg.EntityRecord.GenericEntityRecord");

Vsg.EntityRecord.PrelProbabilityStock = Ext.extend(Vsg.EntityRecord.GenericEntityRecord,{
	
	
	constructor:function($config) {
		
		// --- set attribute ---
		var $_defaultMapping = [
			{name:'id' , mapping:'id'},
			{name:'code' , mapping:'code'},
			{name:'stockname' , mapping:'stockname'},
			{name:'upProbability' , mapping:'upProbability'},
			{name:'date' , mapping:'date'}
		];
		
		var $mapping =null;
		if ($config != null && $config.mapping != null) {
			$mapping = $config.mapping;
		} else {
			$mapping = $_defaultMapping;
		}


		//Ext.apply(this , $config);
		// --- mapping ----
		var $map = null;
		while ( ($map = $mapping.shift()) != null ) {
			this.addMapping( $map );
		};

		Vsg.EntityRecord.PrelProbabilityStock.superclass.constructor.call( this );
	}

});
